// 所有和【权限菜单】相关的请求

import { httpDelete, httpGet, httpPost, httpPut } from "@/utils/http"



// 获取权限菜单数据
export const findPermissionApi = (data?: object) => {
    return httpPost('/permission/find', data)
}
// 添加权限菜单数据
export const addPermissionApi = (data: object) => {
    return httpPost('/permission/add', data)
}
// 删除权限菜单数据
export const deletePermissionApi = (data: object) => {
    return httpDelete('/permission/remove', data)
}
// 修改权限菜单数据
export const updatePermissionApi = (data: object) => {
    return httpPut('/permission/update', data)
}
// 获取一个权限菜单数据的详情
export const getPermissionByIdApi = (data: object) => {
    return httpGet('/permission/getById', data)
}